<!-- $Id: category_info.htm 16752 2009-10-20 09:59:38Z wangleisvn $ -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>添加管理员角色</title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="{{asset('admin/Styles/general.css')}}" rel="stylesheet" type="text/css" />
<link href="{{asset('admin/Styles/main.css')}}" rel="stylesheet" type="text/css" />
</head>
<body>
@if(count($errors)>0)
    @if(is_object($errors))
        @foreach($errors->all() as $error)
        <li>{{$error}}</li>
        @endforeach
        @else
        <li>{{$errors}}</li>
    @endif
@endif
<h1>
    <span class="action-span">
        <a href="{{url('manager/rbac/role/role_list')}}">
            所有管理员角色列表
        </a></span>
    <span class="action-span1"><a href="__GROUP__">ECSHOP 管理中心</a></span>
    <span id="search_id" class="action-span1"> - 添加新角色 </span>
    <div style="clear:both"></div>
</h1>
<div class="main-div">
    <form action="" method="post" name="theForm">
        {{csrf_field()}}
         <table width="100%" id="general-table">
            <tr>
                <td class="label">角色名称:</td>
                <td>
                    <input type='text' name='role_name' maxlength="20" value='' size='27' /> <font color="red">*</font>
                </td>
            </tr>
            <tr>
                <td class="label">角色排序:</td>
                <td>
                    <input type="text" name='sort_order' value="10" size="15"  />
                </td>
            </tr>
            <tr>
                <td class="label">权限集合</td>
                <td>
                    <br/><br/>
                    @foreach($per_group_list as $per)
                    <h3 style="text-align:left;color:red;font-weight:bold;">{{$per->pname}}</h3>
                        @foreach($per->per_list as $p)
                            <label>{{$p->per_name}}
                            <input type="checkbox" name="per_data[]" value="{{$p->per_id}}">
                        </label>
                            &nbsp;&nbsp;&nbsp;&nbsp;
                        @endforeach
                    @endforeach
                </td>
            </tr>
        </table>
        <div class="button-div">
            <input type="submit" value=" 确定 " />
            <input type="reset" value=" 重置 " />
        </div>
    </form>
</div>
<div id="footer">
</div>
</body>
</html>